package com.code.day14ApI2.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class Demo05With {
    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        LocalDateTime localDateTime = LocalDateTime.now();
//        System.out.println(now);
//        LocalDate now1 = now.withYear(2026);
//        System.out.println(now1);
//        LocalDate now2 = now1.withMonth(5);
//        System.out.println(now2);
//        LocalDate now3 = now2.withDayOfMonth(5);
//        System.out.println(now3);
        LocalDate now4 =  now.withYear(2026).withMonth(5).withDayOfMonth(5);
        System.out.println(now4);
      System.out.println("==================");
        LocalDateTime hhh = localDateTime.withYear(2024).withMonth(7).withDayOfMonth(9).withHour(10).withMinute(9).withSecond(59);
        System.out.println(hhh);
    }
}
